//package com.plian.system.controller.im;
//
//import com.plian.Tools.Func;
//import com.plian.Tools.StringPool;
//import com.plian.Tools.base.BaseController;
//import com.plian.Tools.pagedata.PageData;
//import com.plian.system.config.Resubmit;
//import com.plian.system.entity.im.InvestmentEvaluation;
//import com.plian.system.model.CommonCode;
//import com.plian.system.model.ListResult;
//import com.plian.system.model.R;
//import com.plian.system.mybatis.support.Query;
//import com.plian.system.service.im.IInvestmentEvaluationService;
//import com.plian.system.vo.im.InvestmentEvaluationVO;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import lombok.AllArgsConstructor;
//import org.apache.commons.lang3.StringUtils;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.validation.Valid;
//import java.util.List;
//
///**
// * @Author: Take-off
// * @Description: TODO
// * @Date: 2023/2/8 11:06 AM
// * @Version: 1.0
// **/
//@RestController
//@AllArgsConstructor
//@RequestMapping("api/investmentevaluation")
//@Api(value = "InvestmentEvaluationController", tags = "年度投资后评价 控制器")
//public class InvestmentEvaluationController extends BaseController {
//
//    private final IInvestmentEvaluationService evaluationService;
//
//    @PostMapping("/detail")
//    @ApiOperation(value = "详情", notes = "传入 investmentEvaluation")
//    public R<InvestmentEvaluationVO> detail(@RequestBody InvestmentEvaluation investmentEvaluation) {
//        InvestmentEvaluationVO investmentEvaluationVO = evaluationService.getDetailObj(investmentEvaluation);
//        return R.data(investmentEvaluationVO);
//    }
//
//    @PostMapping("/list")
//    @ApiOperation(value = "分页", notes = "传入query")
//    public ListResult<InvestmentEvaluationVO> list(@RequestBody Query query) {
//        return evaluationService.list(query);
//    }
//
//    @PostMapping("/submit")
//    @Resubmit(delaySeconds = 0)
//    @ApiOperation(value = "新增或修改", notes = "传入 investmentEvaluation")
//    public R<InvestmentEvaluation> submit(@Valid @RequestBody InvestmentEvaluation investmentEvaluation) {
//        boolean result = evaluationService.submit(investmentEvaluation);
//        return result ? R.data(investmentEvaluation) : new R(CommonCode.FAIL);
//    }
//
//    @PostMapping("/remove")
//    @ApiOperation(value = "删除", notes = "传入 ids")
//    public R remove(@RequestBody PageData pd) {
//        List<String> ids = (List<String>)pd.get("ids");
//        return evaluationService.deleteLogic(Func.toLongList(StringUtils.join(ids, StringPool.COMMA)))
//                ? new R(CommonCode.SUCCESS) : new R(CommonCode.FAIL);
//    }
//}
